# encoding: utf-8
"""
@author:auto generate code
@license: Apache Licence
@time: 2020-07-18 17:01:27
@contact: wujinsheng1@yy.com
构造器，负责构造cmd命令，通过rpc发送给客户端
"""
from sdktest_module.utils.api_base_builder import ApiBaseBuilder, parameter


class initComponent(ApiBaseBuilder):
    api_name = "tv.athena.live.base.manager.LiveRoomComponentManager.initComponent"

    @parameter(1, "String")
    def uid(self, sid):
        return self

    @parameter(2, "long")
    def uid(self, myUid):
        return self

    @parameter(3, "componentConfigs")
    def uid(self, componentConfigs):
        return self

    @parameter(4, "liveRoomBzMode")
    def uid(self, liveRoomBzMode):
        return self


# 构造器，负责构造命令
class joinRoom(ApiBaseBuilder):
    api_name = "tv.athena.live.base.manager.LiveRoomComponentManager.joinRoom"

    @parameter(1, "long")
    def uid(self, uid):
        return self

    @parameter(2, "String")
    def userName(self, userName):
        return self

    @parameter(3, "String")
    def sid(self, sid):
        return self

    @parameter(4, "String")
    def password(self, password):
        return self

    @parameter(5, "String")
    def token(self, token):
        return self

    @parameter(6, "String")
    def positionToken(self, positionToken):
        return self

    @parameter(7, "String")
    def extend(self, extend):
        return self

    @parameter(8, "tv.athena.live.api.IDataCallback")
    def callback(self, callback):
        return self


class leaveRoom(ApiBaseBuilder):
    api_name = "tv.athena.live.base.manager.LiveRoomComponentManager.leaveRoom"

    @parameter(1, "long")
    def uid(self, uid):
        return self

    @parameter(2, "String")
    def uid(self, sid):
        return self


class activatingThunderHandle(ApiBaseBuilder):
    api_name = "tv.athena.live.base.manager.LiveRoomComponentManager.activatingThunderHandle"


class deInitComponent(ApiBaseBuilder):
    api_name = "tv.athena.live.base.manager.LiveRoomComponentManager.deInitComponent"
